﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace YodaMaster.Models
{
    public class CoursesToDict
    {
        public Dictionary<Course, string> courses {get; set; }
        public Dictionary<Course, string> convert(List<Course> courses_list)
        {
            courses = new Dictionary<Course, string>();
            foreach (Course course in courses_list)
            {
                courses.Add(course, course.faculty);
            }
            return courses;
        }
    }
}